package com.finalministry.db.objects;

import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.xml.bind.annotation.XmlRootElement;

@Entity
@XmlRootElement
public class Territory extends AbstractDO {

	private Long congregationID;
	private Long number;
	private String city;
	private String postalcode;
	@OneToOne
	private Area area;

	public Territory() {

	}

	public Territory(Long congregationID, Long number, String city, String postalcode, Area area) {
		super();
		this.congregationID = congregationID;
		this.number = number;
		this.city = city;
		this.postalcode = postalcode;
		this.area = area;
	}

	public Long getCongregationID() {
		return congregationID;
	}

	public void setCongregationID(Long congregationID) {
		this.congregationID = congregationID;
	}

	public Long getNumber() {
		return number;
	}

	public void setNumber(Long number) {
		this.number = number;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getPostalcode() {
		return postalcode;
	}

	public void setPostalcode(String postalcode) {
		this.postalcode = postalcode;
	}

	public Area getArea() {
		return area;
	}

	public void setArea(Area area) {
		this.area = area;
	}

}
